//
//  EditView.h
//  SeaMelonSeeds_Counselor
//
//  Created by 尤振宇 on 2017/7/18.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JHMacros.h"
#import <IQTextView.h>

typedef enum : NSUInteger {
    Label_EditViewType,
    ImageView_EditViewType,
    TextView_EditViewType,
    TextField_EditViewType,
    Button_EditViewType,
} EditViewType;

@interface EditView : UIView
@property (weak, nonatomic) IBOutlet UILabel *label;
@property (weak, nonatomic) IBOutlet UIView *line;
@property (nonatomic,assign,readwrite) EditViewType type;

/* Label_EditViewType */
@property(nonatomic,weak)UILabel *content;
/* ImageView_EditViewType */
@property(nonatomic,weak)UIImageView *imageView1;
@property(nonatomic,weak)UIImageView *imageView2;
@property(nonatomic,copy)ButtonActionIndexBlock selectImageAction;
/* TextView_EditViewType */
@property(nonatomic,weak)IQTextView *textView;
/* TextField_EditViewType */
@property(nonatomic,weak)UITextField *textField;
/* Button_EditViewType */
@property(nonatomic,weak)UIButton *btn;
@property(nonatomic,copy)ButtonActionBlock buttonAction;


-(instancetype)init NS_UNAVAILABLE;
-(instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
-(instancetype)initWithType:(EditViewType)type;

@end
